<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org" xmlns:th="https://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security5">
<head>
    <meta charset="UTF-8" >
    <title>测试1</title>
</head>
<body>
    测试1
<div style="width: 100%;height: 100vh;display: flex;flex-direction: column;justify-content: space-around">
    <button sec:authorize="hasRole('ROLE_ADD')">增加</button>
    <button sec:authorize="hasRole('ROLE_UPDATE')">修改</button>
    <button sec:authorize="hasRole('ROLE_DELETE')">删除</button>
</div>
</body>
</html>